# -*- coding: utf-8 -*-
import fuse
from simple import *
from fuse import Fuse


# Set fuse.fuse_python_api to make it easy for the fuse module to find out #
# the which FUSE-Python API revision is appropriate for your code.         #
fuse.fuse_python_api = (0, 2)

# Flags for fuse, for more info; python fusewrapper.py --help
FLAGS = ['-f', '-o', 'use_ino', '-o', 'attr_timeout=0', '-o', 'allow_other']

# Main
if __name__ == '__main__':
    # Set flags for fuse.
    sys.argv = sys.argv + FLAGS
    # Instance of the filesystem.
    fs = Simple()
    # Open the log.
    fs.open_log()
    # Parse command line, fill 'fuse_args' attribute.
    fs.parse(errex=1)
    # Start filesystem
    fs.main()
